3.2.1 \(\int \frac {A+B \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx\) [101]

Optimal. Leaf size=102 \[ \frac {(i A+B) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )}{\sqrt {a-i b} d}-\frac {(i A-B) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )}{\sqrt {a+i b} d} \]

[Out]

(I*A+B)*arctanh((a+b*cot(d*x+c))^(1/2)/(a-I*b)^(1/2))/d/(a-I*b)^(1/2)-(I*A-B)*arctanh((a+b*cot(d*x+c))^(1/2)/(
a+I*b)^(1/2))/d/(a+I*b)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.11, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3620, 3618, 65, 214} \begin {gather*} \frac {(B+i A) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )}{d \sqrt {a-i b}}-\frac {(-B+i A) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )}{d \sqrt {a+i b}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(A + B*Cot[c + d*x])/Sqrt[a + b*Cot[c + d*x]],x]

[Out]

((I*A + B)*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a - I*b]])/(Sqrt[a - I*b]*d) - ((I*A - B)*ArcTanh[Sqrt[a + b*
Cot[c + d*x]]/Sqrt[a + I*b]])/(Sqrt[a + I*b]*d)

Rule 65

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 3618

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c*(
d/f), Subst[Int[(a + (b/d)*x)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &&
NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]

Rule 3620

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c
 + I*d)/2, Int[(a + b*Tan[e + f*x])^m*(1 - I*Tan[e + f*x]), x], x] + Dist[(c - I*d)/2, Int[(a + b*Tan[e + f*x]
)^m*(1 + I*Tan[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0]
&& NeQ[c^2 + d^2, 0] &&  !IntegerQ[m]

Rubi steps

\begin {align*} \int \frac {A+B \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx &=\frac {1}{2} (A-i B) \int \frac {1+i \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx+\frac {1}{2} (A+i B) \int \frac {1-i \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx\\ &=\frac {(i A-B) \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a+i b x}} \, dx,x,-i \cot (c+d x)\right )}{2 d}-\frac {(i A+B) \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a-i b x}} \, dx,x,i \cot (c+d x)\right )}{2 d}\\ &=\frac {(A-i B) \text {Subst}\left (\int \frac {1}{-1-\frac {i a}{b}+\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \cot (c+d x)}\right )}{b d}+\frac {(A+i B) \text {Subst}\left (\int \frac {1}{-1+\frac {i a}{b}-\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \cot (c+d x)}\right )}{b d}\\ &=\frac {(i A+B) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )}{\sqrt {a-i b} d}-\frac {(i A-B) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )}{\sqrt {a+i b} d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.54, size = 154, normalized size = 1.51 \begin {gather*} \frac {\left (\sqrt {a+i b} (i A+B) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )+\sqrt {a-i b} (-i A+B) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )\right ) (A+B \cot (c+d x)) \sin (c+d x)}{\sqrt {a-i b} \sqrt {a+i b} d (B \cos (c+d x)+A \sin (c+d x))} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(A + B*Cot[c + d*x])/Sqrt[a + b*Cot[c + d*x]],x]

[Out]

((Sqrt[a + I*b]*(I*A + B)*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a - I*b]] + Sqrt[a - I*b]*((-I)*A + B)*ArcTanh
[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a + I*b]])*(A + B*Cot[c + d*x])*Sin[c + d*x])/(Sqrt[a - I*b]*Sqrt[a + I*b]*d*(B
*Cos[c + d*x] + A*Sin[c + d*x]))

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1406\) vs. \(2(84)=168\).
time = 0.60, size = 1407, normalized size = 13.79 Too large to display

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A+B*cot(d*x+c))/(a+b*cot(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/d*(-1/2/(a^2+b^2)^(3/2)/b^2*(1/2*(A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^2*b+A*(2*(a^2+b^2)^(1/2)
+2*a)^(1/2)*(a^2+b^2)^(1/2)*b^3-A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^3*b-A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a*b^3+B*
(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(3/2)*a-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^3-B*(2*(a^2+
b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a*b^2-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^2*b^2-B*(2*(a^2+b^2)^(1/2)+2*a)^
(1/2)*b^4)*ln(b*cot(d*x+c)+a+(a+b*cot(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)+(a^2+b^2)^(1/2))+2*(2*A*a^2*
b^3+2*A*b^5-2*B*a^3*b^2-2*B*a*b^4-1/2*(A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^2*b+A*(2*(a^2+b^2)^(1
/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*b^3-A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^3*b-A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a*b^3
+B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(3/2)*a-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^3-B*(2*(a
^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a*b^2-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^2*b^2-B*(2*(a^2+b^2)^(1/2)+2*
a)^(1/2)*b^4)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan((2*(a+b*cot(d*x+c))^(1/2)+(2
*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)))-1/2/(a^2+b^2)^(3/2)/b^2*(-1/2*(A*(2*(a^2+b^2)^(1/
2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^2*b+A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*b^3-A*(2*(a^2+b^2)^(1/2)+2
*a)^(1/2)*a^3*b-A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a*b^3+B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(3/2)*a-B*(2*(
a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^3-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a*b^2-B*(2*(a^2+
b^2)^(1/2)+2*a)^(1/2)*a^2*b^2-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*b^4)*ln((a+b*cot(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2
)+2*a)^(1/2)-b*cot(d*x+c)-a-(a^2+b^2)^(1/2))+2*(-2*A*a^2*b^3-2*A*b^5+2*B*a^3*b^2+2*B*a*b^4+1/2*(A*(2*(a^2+b^2)
^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^2*b+A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*b^3-A*(2*(a^2+b^2)^(1/
2)+2*a)^(1/2)*a^3*b-A*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a*b^3+B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(3/2)*a-B*
(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a^3-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a*b^2-B*(2*(
a^2+b^2)^(1/2)+2*a)^(1/2)*a^2*b^2-B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*b^4)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+
b^2)^(1/2)-2*a)^(1/2)*arctan(((2*(a^2+b^2)^(1/2)+2*a)^(1/2)-2*(a+b*cot(d*x+c))^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^
(1/2))))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*cot(d*x+c))/(a+b*cot(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate((B*cot(d*x + c) + A)/sqrt(b*cot(d*x + c) + a), x)

________________________________________________________________________________________

Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*cot(d*x+c))/(a+b*cot(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B \cot {\left (c + d x \right )}}{\sqrt {a + b \cot {\left (c + d x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*cot(d*x+c))/(a+b*cot(d*x+c))**(1/2),x)

[Out]

Integral((A + B*cot(c + d*x))/sqrt(a + b*cot(c + d*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((A+B*cot(d*x+c))/(a+b*cot(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate((B*cot(d*x + c) + A)/sqrt(b*cot(d*x + c) + a), x)

________________________________________________________________________________________

Mupad [B]
time = 2.29, size = 2909, normalized size = 28.52 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B*cot(c + d*x))/(a + b*cot(c + d*x))^(1/2),x)

[Out]

2*atanh((32*B^2*b^2*((B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)) - (-16*B^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)))^(
1/2)*(a + b*cot(c + d*x))^(1/2))/((16*B^3*b^2)/d - (16*B^3*a^2*b^2*d^3)/(a^2*d^4 + b^2*d^4) + (4*B*a*b^2*d^2*(
-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5)) + (8*a*b^2*((B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)) - (-16*B^4*b^2*d^
4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2)*(-16*B^4*b^2*d^4)^(1/2))/(16*B^3*b^4*d + 1
6*B^3*a^2*b^2*d - (16*B^3*a^2*b^4*d^5)/(a^2*d^4 + b^2*d^4) - (16*B^3*a^4*b^2*d^5)/(a^2*d^4 + b^2*d^4) + (4*B*a
^3*b^2*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5) + (4*B*a*b^4*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b
^2*d^5)) - (32*B^2*a^2*b^2*d^2*((B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)) - (-16*B^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b
^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/(16*B^3*b^4*d + 16*B^3*a^2*b^2*d - (16*B^3*a^2*b^4*d^5)/(a^2*d^4 +
 b^2*d^4) - (16*B^3*a^4*b^2*d^5)/(a^2*d^4 + b^2*d^4) + (4*B*a^3*b^2*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^
2*d^5) + (4*B*a*b^4*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5)))*((B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)) -
(-16*B^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)))^(1/2) + 2*atanh((8*a*b^2*((-16*B^4*b^2*d^4)^(1/2)/(16*(a^2*d
^4 + b^2*d^4)) + (B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2)*(-16*B^4*b^2*d^4)^(1/2)
)/((16*B^3*a^2*b^4*d^5)/(a^2*d^4 + b^2*d^4) - 16*B^3*a^2*b^2*d - 16*B^3*b^4*d + (16*B^3*a^4*b^2*d^5)/(a^2*d^4
+ b^2*d^4) + (4*B*a^3*b^2*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5) + (4*B*a*b^4*d^4*(-16*B^4*b^2*d^4)^
(1/2))/(a^2*d^5 + b^2*d^5)) - (32*B^2*b^2*((-16*B^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) + (B^2*a*d^2)/(4*(
a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/((16*B^3*a^2*b^2*d^3)/(a^2*d^4 + b^2*d^4) - (16*B^3*b^2
)/d + (4*B*a*b^2*d^2*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5)) + (32*B^2*a^2*b^2*d^2*((-16*B^4*b^2*d^4)^(1
/2)/(16*(a^2*d^4 + b^2*d^4)) + (B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/((16*B^3
*a^2*b^4*d^5)/(a^2*d^4 + b^2*d^4) - 16*B^3*a^2*b^2*d - 16*B^3*b^4*d + (16*B^3*a^4*b^2*d^5)/(a^2*d^4 + b^2*d^4)
 + (4*B*a^3*b^2*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5) + (4*B*a*b^4*d^4*(-16*B^4*b^2*d^4)^(1/2))/(a^
2*d^5 + b^2*d^5)))*((-16*B^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) + (B^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1
/2) + 2*atanh((32*A^2*b^2*((-16*A^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) - (A^2*a*d^2)/(4*(a^2*d^4 + b^2*d^
4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/((16*A^3*a*b^3*d^3)/(a^2*d^4 + b^2*d^4) - (4*A*b^3*d^2*(-16*A^4*b^2*d^4
)^(1/2))/(a^2*d^5 + b^2*d^5)) + (8*a*b^2*((-16*A^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) - (A^2*a*d^2)/(4*(a
^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2)*(-16*A^4*b^2*d^4)^(1/2))/((16*A^3*a*b^5*d^5)/(a^2*d^4 + b
^2*d^4) - (4*A*b^5*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5) + (16*A^3*a^3*b^3*d^5)/(a^2*d^4 + b^2*d^4)
 - (4*A*a^2*b^3*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5)) - (32*A^2*a^2*b^2*d^2*((-16*A^4*b^2*d^4)^(1/
2)/(16*(a^2*d^4 + b^2*d^4)) - (A^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/((16*A^3*
a*b^5*d^5)/(a^2*d^4 + b^2*d^4) - (4*A*b^5*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5) + (16*A^3*a^3*b^3*d
^5)/(a^2*d^4 + b^2*d^4) - (4*A*a^2*b^3*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5)))*((-16*A^4*b^2*d^4)^(
1/2)/(16*(a^2*d^4 + b^2*d^4)) - (A^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2) - 2*atanh((8*a*b^2*(- (-16*A^4*b^2*
d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) - (A^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2)*(-
16*A^4*b^2*d^4)^(1/2))/((16*A^3*a*b^5*d^5)/(a^2*d^4 + b^2*d^4) + (4*A*b^5*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^
5 + b^2*d^5) + (16*A^3*a^3*b^3*d^5)/(a^2*d^4 + b^2*d^4) + (4*A*a^2*b^3*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 +
 b^2*d^5)) - (32*A^2*b^2*(- (-16*A^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) - (A^2*a*d^2)/(4*(a^2*d^4 + b^2*d
^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/((16*A^3*a*b^3*d^3)/(a^2*d^4 + b^2*d^4) + (4*A*b^3*d^2*(-16*A^4*b^2*d^
4)^(1/2))/(a^2*d^5 + b^2*d^5)) + (32*A^2*a^2*b^2*d^2*(- (-16*A^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) - (A^
2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2)*(a + b*cot(c + d*x))^(1/2))/((16*A^3*a*b^5*d^5)/(a^2*d^4 + b^2*d^4) +
(4*A*b^5*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5) + (16*A^3*a^3*b^3*d^5)/(a^2*d^4 + b^2*d^4) + (4*A*a^
2*b^3*d^4*(-16*A^4*b^2*d^4)^(1/2))/(a^2*d^5 + b^2*d^5)))*(- (-16*A^4*b^2*d^4)^(1/2)/(16*(a^2*d^4 + b^2*d^4)) -
 (A^2*a*d^2)/(4*(a^2*d^4 + b^2*d^4)))^(1/2)

________________________________________________________________________________________